{% extends "site/base_site.html" %}
{% load bootstrap3 %}
{% load i18n %}

{% block title %}{% trans 'Password reset' %}{% endblock %}

{% block content %}

    <div class="sign-box">
        {% if validlink %}

            <h1>{% trans 'Enter new password' %}</h1>

            <p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>

            <form action="" method="post">
                {% csrf_token %}
                {% bootstrap_form form %}
                <div class="form-group">
                    <button type="submit" class="btn btn-primary">确定</button>
                    <a href="{% url 'login' %}">&lt; 返回登录</a>
                </div>
            </form>

        {% else %}

            <h1>{% trans 'Password reset unsuccessful' %}</h1>

            <p>{% trans "The password reset link was invalid, possibly because it has already been used.  Please request a new password reset." %}</p>

        {% endif %}
    </div>
{% endblock %}
